// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.configure with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Boot from "ueboot";
import { Axios } from "ueboot";
import AxiosUtils from "./utils/Axios";
import axios from "axios";
import deepExtend from "deep-extend";

import 'ueboot/ue-theme/index.less'
import 'ueboot/ueboot/styles/ueboot.css'
import "font-awesome/scss/font-awesome.scss"

Vue.use(Boot);

Vue.prototype.$axios = axios;
Vue.prototype.$deepExtend = deepExtend;

console.log("baseURL is: %s", process.env.CONTEXT)
Axios.init({ baseURL: process.env.CONTEXT, unauthorizedUrl: process.env.CONTEXT_HTML + "/#/login" });
AxiosUtils.init({ baseURL: process.env.CONTEXT, unauthorizedUrl: process.env.CONTEXT_HTML + "/#/login" });

console.log("CONTEXT_HTML is: %s", process.env.CONTEXT_HTML)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: {App}
})
